package com.pineapple.module.util.connection;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBCPConnection {
	private static final String url = "jdbc:mysql://localhost/pineappleDB?useUnicode=true&characterEncoding=UTF-8";
	String driver = "com.mysql.jdbc.Driver";
	private static final String username = "root";
	private static final String password = "root";

	public Connection getConnection() throws Exception {
		Connection conn = null;

			Class.forName(driver).newInstance();
			conn = DriverManager.getConnection(url,username,password);

		return conn;
	}

}
